import { Graph } from '@antv/x6'
import { FlowState } from '../hooks/useFlowState'
import registerKeyboardEvent from './keyboard'
import registerNodeEvent from './node'

export default function registerEvent (graph: Graph, container: HTMLElement, state: FlowState) {
  registerNodeEvent(graph, container, state)
  registerKeyboardEvent(graph)
}
